package com.yn.pet.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yn.pet.bus.entity.GenFence;

import java.util.ArrayList;
import java.util.List;

/**
 * 地理围栏信息表(GenFence)表服务接口
 *
 * @author makejava
 * @since 2025-07-09 12:00:47
 */
public interface GenFenceService extends IService<GenFence> {

    /**
     * 根据id查询围栏信息
     * @param fenceId 围栏id
     * @return
     */
    GenFence selectFenceById(Long fenceId);

    /**
     * 修改围栏消息状态
     * @param fenceId 围栏id
     * @param messageStatus 状态
     */
    void updateMsgStatusById(Long fenceId, int messageStatus,boolean delete);

    /**
     * 批量修改围栏消息状态
     * @param fenceIdList 围栏id列表
     * @param messageStatus 状态
     */
    void updateMsgStatusByIds(List<Long> fenceIdList, int messageStatus,boolean delete);

    /**
     * 删除围栏
     * @param fenceId 围栏id
     */
    void deleteById(Long fenceId);

    /**
     * 批量删除围栏
     * @param fenceIds 围栏id列表
     */
    void deleteByIds(ArrayList<Long> fenceIds);
}

